package com.mmall.concurrence.threadLocal;

import java.math.BigDecimal;

public class TestMain {

    public static void main(String[] args) {
        float a = 1.0f - 0.9f;
        float b = 0.9f - 0.8f;
        float c = 0.8f - 0.9f;
        float d = 0.8f - 0.7f;

        BigDecimal b1 = new BigDecimal(0.1);
        BigDecimal b2 = new BigDecimal("0.1");
        System.out.println(b1+"---------"+b2);

        Float aa = Float.valueOf(a);
        Float bb = Float.valueOf(b);
        if (a == b) {
            System.out.println("true");

        } else {
            System.out.println("false");
        }


        String param = null;
        switch (param) {  //此处报空指针异常
            case "null":
                System.out.println("null");
                break;
            default:
                System.out.println("default");
                break;

        }
    }
}
